import Vue from "vue";
import VueRouter from "vue-pages";
import Home from "@/pages/Home.vue";
import GoodsList from "@/pages/GoodsList.vue";
import NewsList from "@/pages/NewsList.vue";
import My from "@/pages/My.vue";
import NoFound from "@/pages/NoFound.vue";
import Login from "@/pages/Login.vue";
Vue.use(VueRouter);
const router = new VueRouter({
	routes:[
		{
			path:"/",
			component:Home
		},{
			path:"/goodsList",
			component:GoodsList
		},{
			path:"/newsList",
			component:NewsList
		},{
			path:"/my",
			component:My
		},{
			path:"*",
			component:NoFound
		},{
			path:"/login",
			component:Login
		}
	],
	mode:"history"
});
export default router;